package com.project.finance.mobile.packbackorder.controller;

import com.project.finance.common.po.TbBill;
import com.project.finance.common.po.TbDebitOrder;
import com.project.finance.common.po.TbPaybackOrder;
import com.project.finance.common.resultconfig.Result;
import com.project.finance.common.resultconfig.ResultGenerator;
import com.project.finance.mobile.packbackorder.service.PackBackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@RestController
public class PackBackController {
    @Autowired
    private PackBackService packBackService;
    //还款列表
    @RequestMapping(value = "paybackOrder",method = RequestMethod.GET)
    public Result findOne(@RequestParam("userId") Integer userId){
        HashMap<Object, Object> one = packBackService.findOne(userId);
        return ResultGenerator.apiSuccess(one);
    }
}
